package com.asset.dispoal.flawPool.domain.db.mapper;

import com.asset.dispoal.flawPool.domain.db.entity.FlawPoolDo;
import com.asset.dispoal.flawPool.dto.FlawPoolResponse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import tech.mhuang.pacebox.springboot.protocol.data.Page;

import java.util.List;


/**
 * @author qr
 * @date 2022/5/23$
 */
@Mapper
public interface FlawPoolMapper {

    /**
     * 添加
     *
     * @param flawPoolDo
     */
    void insert(@Param("data") FlawPoolDo flawPoolDo);


    /**
     * 修改
     *
     * @param flawPoolDo
     */
    void update(@Param("data") FlawPoolDo flawPoolDo);


    /**
     * 删除
     *
     * @param id
     */
    void delete(@Param("id") String id);


    /**
     * 条数查询
     *
     * @param flawPoolDo
     * @return
     */
    int queryCount(@Param("data") FlawPoolDo flawPoolDo);

    /**
     * 分页查询
     *
     * @param page
     * @return
     */
    List<FlawPoolResponse> queryPage(@Param("page") Page<FlawPoolDo> page);
}
